﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true" CodeBehind="SinglewellSearchTree.aspx.cs" Inherits="Web.Views.SingleWellManage.SinglewellSearchTree" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
      $(function () {
          //加载公司通讯录Tree
          var timestamp = new Date().getTime();
          $('#treeArchiveMenu').tree({
              method: "get",
              lines: true,
              idFiled: "id",
              textFiled: "text",
              parentField: "pid",
              cascadeCheck: false,
              url: "SingleWellTreeHandler.ashx?archivemenu=yes&timestamp=" + timestamp + "",
              onBeforeExpand: function (node, param) {
              },
              onLoadSuccess: function (node, data) {
                  window.parent.document.getElementById('Iframe1').src = "../SystemLogin/loadingpage.aspx?Menu_URL=../SingleWellManage/SingleWellSearch.aspx?wellcatalogid=" + data[0].children[0].id;
              },
              onSelect: function (node) {
                  if ($('#treeArchiveMenu').tree('isLeaf', node.target)) {
                      window.parent.document.getElementById('Iframe1').src = "../SystemLogin/loadingpage.aspx?Menu_URL=../SingleWellManage/SingleWellSearch.aspx?wellcatalogid=" + node.id;
                  }
              }
          });
      });
  </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul id="treeArchiveMenu"></ul>
</asp:Content>
